package dk.javacode.srsm.converters;

public interface JdbcDataConverter<T> {

	/**
	 * Implement this method to convert the Object returned by the ResultSet to 
	 * the value required by your POJO.
	 * @param o
	 * @return
	 */
	public abstract T convertToPojo(Object o);
	
	/**
	 * Implement this method to convert the value from your POJO to the
	 * value to insert using a PreparedStatement
	 * @param value
	 * @return
	 */
	public abstract Object pojoToDatabase(Object value);
}
